#ifndef __MEDIAFS_CUE_LEXER_PARSER_H__
#define __MEDIAFS_CUE_LEXER_PARSER_H__

#include "cue.h"
#include "cue_parser.h"

struct membuf_lex {
	char const *buffer;
	size_t bufsize;
	size_t pos;
};

#define YY_EXTRA_TYPE struct membuf_lex *

extern int yylex_init_extra(YY_EXTRA_TYPE, void **);
extern void yyset_debug(int, void *);
extern int yylex(YYSTYPE *, void *);
extern void yyset_extra(YY_EXTRA_TYPE, void *);
extern int yylex_destroy(void *);

extern struct cue_cd *parse_cue_buffer(char const *, size_t, int *);

#endif

